home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_11.lha
/
6_11
/
README
< prev
next >
Wrap
Text File
|
1993-08-08
|
1KB
|
23 lines
he files contained here are the files for Exercise 6.11 as originally
ncluded in my book. Unfortunately, there is a nonportability that slipped
hrough during my testing. The problem comes about due to the way that
nsigned variables are promoted. Some compilers follow the ANSI C rules
hich say that preserves value for unsigned promotions, and other compilers
ollow an older rule that the sign is preserved. For Exercise 6.11, this
ffects the way that combinations of ARB_type to create an ARB_Ltype is
erformed. Anyplace within the following code that has a statement such as
ARB_Ltype t = uv[I] * v_j + wv[iplusj] + k;
t may or may not work on your machine, depending on how your compiler works.
our best bet is to compile the code, and then run the test cases. If it
asses, you're okay. If not, you'll have to make some changes.
he second edition of the Answer Book will have this mess fixed in a way
hich will be more portable. My apologies.
Tony Hansen
hansen@pegasus.att.com, tony@attmail.com
att!pegasus!hansen, attmail!tony